/**
 * 
 */
package at.fhj.ase.data;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

/**
 * ASE10 - SS2011 
 * Project work Client Architecture and Design
 *  
 * @author Henning Diepold
 * @author Dieter Steiner
 */

public interface CustomerDAO {
    void insert(Customer customer);
    void update(Customer customer);
    void delete(Customer customer);
    
    Customer findById(int pKey);
    Customer findByUsername(String username) throws SQLException, ClassNotFoundException;
    ArrayList<Customer> findAll();
    ArrayList<Account> findAccounts(int customerID) throws SQLException, ClassNotFoundException;
}
